package com.xtravel.common.helper;

import android.content.Context;
import android.graphics.Color;
import android.text.TextUtils;
import cc.cloudist.acplibrary.ACProgressConstant;
import cc.cloudist.acplibrary.ACProgressFlower;

/**
 * @author kuner
 *         <p/>
 *         15-9-4.
 */
public class DialogHelper {

    /***
     * 获取一个耗时等待对话框.
     *
     * @param context Context.
     * @param message 显示文案.
     *
     * @return 等待框
     */
    public static ACProgressFlower getWaitDialog(Context context, String message) {
        ACProgressFlower waitDialog = new ACProgressFlower.Builder(context).direction(
                ACProgressConstant.DIRECT_CLOCKWISE)
                .themeColor(Color.WHITE).text(TextUtils.isEmpty(message) ? "" : message).fadeColor(Color.DKGRAY).build();
        return waitDialog;
    }

}
